From: Juanma Barranquero Date: Wed, 8 Nov 2006 01:06:45 +0000 (+0000) Subject: (get_server_config): Declare set_fg as FARPROC to avoid a compiler warning. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1^2~5^2~32233 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=2dc07a1273fe9057a4c934dc8474fd0432213455;p=emacs.git (get_server_config): Declare set_fg as FARPROC to avoid a compiler warning. --- diff --git a/lib-src/emacsclient.c b/lib-src/emacsclient.c index 3c3b27374fc..2ad3701e07a 100644 --- a/lib-src/emacsclient.c +++ b/lib-src/emacsclient.c @@ -510,7 +510,7 @@ get_server_config (server, authentication) if (hUser32 = LoadLibrary ("user32.dll")) { - void (*set_fg)(DWORD); + FARPROC set_fg; if (set_fg = GetProcAddress (hUser32, "AllowSetForegroundWindow")) set_fg (atoi (pid)); FreeLibrary (hUser32);